<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("modelConfigPath", "shop");
%>
<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>

	
<t:panel cssClass="panel-flat form-detailed" customBody="true" customHead="true">
	<div class="detailed-navbar-content panel-body">
		<t:form modelAttribute="staff" action="/shop/staff/save" method="post" cssClass="form-horizontal">
			<div class="hide">
				 <t:hidden path="id"/>
 				 <t:hidden path="deleteMark"/>	
 				 <t:hidden path="createUserName"/>
		 		 <t:hidden path="createUserId"/>
		 		 <t:hidden path="createDate"/>
		 		 <t:hidden path="shopId"/>
			</div>
            <t:formgroup>
                <t:label path="name" cssClass="col-sm-2" />
                <t:input path="name" colClass="col-sm-4" />
                <t:label path="sex" cssClass="col-sm-2" />
                <t:input path="sex" colClass="col-sm-4" />
                
            </t:formgroup>
         
     
            <t:formgroup>
                <t:label path="mobile" cssClass="col-sm-2" />
                <t:input path="mobile" colClass="col-sm-4" />
                <t:label path="email" cssClass="col-sm-2" />
                <t:input path="email" colClass="col-sm-4" />
            </t:formgroup>

            <t:formgroup>
                <t:label path="qq" cssClass="col-sm-2" />
                <t:input path="qq" colClass="col-sm-4" />
                <t:label path="wechat" cssClass="col-sm-2" />
                <t:input path="wechat" colClass="col-sm-4" />
            </t:formgroup>
            <div class="form-group" style="">
                <label for="newPassword" class="col-sm-5 control-label cursor-pointer text-right">密码(如未输入密码，则默认密码为000000)</label>
                <div class="col-sm-7"><input id="newPassword" name="newPassword" class="form-control custom-input" data-control-type="input" data-ts-forcestepdivisibility="none"  value="" ><span class="field-validation-valid" ></span></div>
            </div>
            <t:formgroup>
				<t:label path="roleIds" cssClass="col-sm-1" />
				<t:select2 path="roleIds" multiple="true" colClass="col-sm-11" />
			</t:formgroup>
		</t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<c:if test="${t_type ne 3 }">
			<t:button icon="icon-floppy-disk" onclick="saveData()" laddaType="progress" cssClass="btn-info" csize="sm">保存</t:button>
		</c:if>
	</t:panelFoot>
	
</t:panel>

<script type="text/javascript">

function saveData(lBtn){
	if (!$("form:first").valid()){
		return;
	}
	lBtn.start();
	$("form:first").submit();
}	


</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formtags.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formbuttons.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
